import request from '@/utils/request'

// 查询房屋属性信息列表
export function listRoomsAttributes(query) {
  return request({
    url: '/room/roomsAttributes/list',
    method: 'get',
    params: query
  })
}

// 查询房屋属性信息详细
export function getRoomsAttributes(attributeId) {
  return request({
    url: '/room/roomsAttributes/' + attributeId,
    method: 'get'
  })
}

// 新增房屋属性信息
export function addRoomsAttributes(data) {
  return request({
    url: '/room/roomsAttributes',
    method: 'post',
    data: data
  })
}

// 修改房屋属性信息
export function updateRoomsAttributes(data) {
  return request({
    url: '/room/roomsAttributes',
    method: 'put',
    data: data
  })
}

// 删除房屋属性信息
export function delRoomsAttributes(attributeId) {
  return request({
    url: '/room/roomsAttributes/' + attributeId,
    method: 'delete'
  })
}
